import apis from "../../http/apis"

export default {
    namespaced: true,
    state:{
        newInsure:{
            name:'',
            typesId:'',
            payType:'',
            suitableFor:'',
            renew:false,
            policy:'',
            price:'',
        }
        
    },
    actions:{
        //添加产品
        async addInsures(context,newdata){
            const {data} = await apis.insures.addInsures({
                ...newdata
            })
            console.log(data);
        }
        
    }
}